package com.lovo.csc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.csc.bean.PromotionalSchemesBean;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 促销订单表的mapper
 */
@Mapper
public interface IPromotionalSchemesMapper extends BaseMapper<PromotionalSchemesBean> {
    /**
     * 添加商品和促销方案中间表
     * @param promotionalId 促销方案id
     * @param productId 商品的id数组
     */
    void addPromotionalByProduct(@Param("promotionalId") long promotionalId ,
                                 @Param("productId") Integer[] productId,
                                 @Param("rate") float rate);
}
